import {
  buildFullUrl,
  post,
  get,
  postUpload,
  Upload,
  postForImage,
  showNotifyFalse,
  getQueryString
} from 'utils/request'

export function iwebApi(params) {
  return get('/api/Card/iweb', params)
}

export function getMenusApi(params) {
  return get('/api/LAdmin/Get_UserMenus', params)
}

export function getAppImg(params) {
  return get('/api/Card/appImg', params)
}

export function updataCardInfo(params) {
  return post('/api/Card/updataCardInfo', params)
}

export function uploadImg(data) {
  //console.log(data);
  return postUpload('/api/Card/upload_img', data)
}
export function AdduploadImgS(guestcode, imgpjid, data) {
  return Upload(`/api/InheartApi/uploadimg?guestcode=${guestcode}&imgpjid=${imgpjid}`,data)
}

export function weChat(params) {
  return get('/api/Card/weChat', params)
}
export function delmdimgApi(data) {
  return post('/api/Card/delmdimg', data)
}
export function deladvimgApi(data) {
  return post('/api/Card/deladvimg', data)
}

export function UpdataCardInfo_body(data) {
  return post('/api/Card/UpdataCardInfo_body', data)
}
export function GetBrand(data) {
  return get('/api/Card/GetBrand', data)
}

export function Addproinfos(params) {
  return post('/api/Card/Addproinfos', params)
}

export function upload_proimg(data) {
  return post('/api/Card/upload_proimg', data)
}

export function UpdateProInfo(params) {
  return post('/api/Card/UpdateProInfo', params)
}
export function GetAppgetVerified(data) {
  return get('/api/Card/GetAppgetVerified', data)
}

//获取账套列表
export function getCustomerUserApi(data) {
  return get('/api/UManage/getCustomerUser', data)
}
//获取分公司
export function getUserGscodeApi(data) {
  return get('/api/UManage/getUserGscode', data)
}
//获取公司列表
export function getCompanyApi(data) {
  return get('/api/UManage/getCompanyUser', data)
}
//获取小程序码
export function getwxacodeunlimitApi(data) {
  return get('/api/AppLogin/wx_getwxacodeunlimit', data)
}
//查询资讯列表
export function GetDefaultlistApi(params) {
  return get('/api/InheartApi/Get_Defaultlist', params)
}
//发布资讯
export function ReleasedataApi(params) {
  return post('/api/InheartApi/Releasedata', params)
}
//编辑资讯
export function Op_inforApi(params) {
  return post('/api/InheartApi/Op_infor', params)
}
//删除资讯
export function RemoveInews(params) {
  return post('/api/InheartApi/Deletenews', params)
}
//删除图片
export function delimgApi(data) {
  return post('/api/InheartApi/delimg', data)
}
//获取部门列表
export function getDepartmentApi(params) {
  return get('/api/Card/Department', params)
}
//获取部门明细
export function GetDepartmentDetailApi(params) {
  return get('/api/Card/DepartmentDetail', params)
}
//新增、删除、注销部门
export function DepartmentApi(params) {
  return post('/api/Card/OpDepartment', params)
}
//获取客服列表
export function getlinkManApi(params) {
  return get('/api/Card/linkMan', params)
}
//获取客服明细
export function GetLinkManDetailApi(params) {
  return get('/api/Card/LinkManDetail', params)
}
//新增、删除、注销联系人
export function linkManApi(params) {
  return post('/api/Card/OplinkMan', params)
}